package com.demo.autotest.job;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


@Component  // 将被修饰的类交给springboot来管理
public class ScheduleJob {

    private String test;
//
//    @Scheduled(cron = "0/3 * * * * ?")  // 每三秒执行一次
//    public void Start(){
//        System.out.println(this.test);
//    }
}
